﻿#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main() 
{
    int count = 0;
    int a, b;
    scanf("%d %d", &a, &b);
    for (int i = 0;i < 32;i++)
    {
        int tmp = (a & 1) ^ (b & 1);
        if (tmp == 1)
            count++;
        a >>= 1;
        b >>= 1;
    }
    printf("%d", count);
    return 0;
}